package com.aop.admin.android_aop_log;

import android.content.Context;
import android.util.Log;

import java.io.File;
import java.io.IOException;

/**
 * @fileName: toolUtils
 * @date: 2019/4/16 13:55
 * @auther: YuanShuai
 * @tag: class//
 * @describe:
 **/
public class toolUtils {

    public static void Tool() {
    }

    public static File file;


    public static File getFilesDir(Context context) {
        try {
            file=new File(context.getFilesDir().getAbsolutePath() + File.separator,"delog.txt");
            File file2=new File(context.getFilesDir().getAbsolutePath() + File.separator);
            if(!file2.exists()){
                file2.mkdirs();
            }
            if(!file.exists()) {
                file.createNewFile();
            }
        } catch (Exception e) {
            e.printStackTrace();
        }
        return file;
    }
}
